package com.lyq.common.logic.sort;

public class SortInfo 
{
	public static final String SORT_CONTEXT = "SORT_CONTEXT";

	private String column;

	private String ascOrDesc = "ASC";

	/**
	 * @return Returns the ascOrDesc.
	 */
	public String getAscOrDesc()
	{
		return ascOrDesc;
	}

	/**
	 * @param ascOrDesc The ascOrDesc to set.
	 */
	public void setAscOrDesc(String ascOrDesc)
	{
		this.ascOrDesc = ascOrDesc;
	}

	/**
	 * @return Returns the column.
	 */
	public String getColumn()
	{
		return column;
	}

	/**
	 * @param column The column to set.
	 */
	public void setColumn(String column)
	{
		this.column = column;
	}

	public String toString()
	{
		return " order by " + this.getColumn() + " " + this.ascOrDesc;
	}
}
